package com.yt.order.provider.dao.impl;

import com.yt.core.dao.GenericDaoImpl;
import com.yt.core.dao.filter.QueryFilter;
import com.yt.order.api.model.Institution;
import com.yt.order.provider.dao.InstitutionDao;

import java.util.List;

/**
 * Created by liujunshi on 16-1-22.
 */
public class InstitutionDaoImpl extends GenericDaoImpl<Institution, Long> implements InstitutionDao {
	public InstitutionDaoImpl() {
		setNameSpace("com.yt.order.institution");
	}

	public List<Institution> getIdAndName(QueryFilter filter){
		return getSqlSession().selectList(getNameSpace() + ".getIdAndName", filter.getParameters());
	}

	public List<Institution> getBaseInfo(QueryFilter filter){
		return getSqlSession().selectList(getNameSpace() + ".getBaseInfo", filter.getParameters());
	}
}
